import { createApp } from 'vue'
import { createPinia } from 'pinia'
import '@/styles/base.css'
import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import persist from 'pinia-plugin-persistedstate'

const app = createApp(App)

// 创建 Pinia 实例并添加插件
const pinia = createPinia()
pinia.use(persist)

// 按顺序使用插件
app.use(pinia)
app.use(router)
app.mount('#app')
